#-------------------------------------------------
#
# Project created by QtCreator 2017-07-31T15:28:51
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = RoundPlayer
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += XLSX_NO_LIB

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


SOURCES += main.cpp\
        mainwindow.cpp \
        playerwidget.cpp \
        appconst.cpp \
        appsettings.cpp \
        apputil.cpp \
        utility.cpp \
        widgethelper.cpp \
        playerapplication.cpp \
        playerlayout.cpp \
    frequencelist.cpp \
    programlist.cpp \
    dialogfrequence.cpp \
    dialogprogram.cpp \
    dialogloop.cpp \
    dialogconfig.cpp \
    dialoguser.cpp \
    dialoglogin.cpp \
    CSecureDataStore.cpp \
    SqliteStore.cpp \
    Account.cpp \
    excelfile.cpp \
    programtreewidget.cpp


HEADERS  += mainwindow.h \
    playerlayout.h \
    playerwidget.h \
    appconst.h \
    appsettings.h \
    apputil.h \
    utility.h \
    widgethelper.h \
    playerapplication.h \
    frequence.h \
    program.h \
    frenquencelist.h \
    programlist.h \
    dialogfrequence.h \
    dialogprogram.h \
    dialogloop.h \
    dialogconfig.h \
    dialoguser.h \
    dialoglogin.h \
    CSecureDataStore.h \
    SqliteStore.h \
    Account.h \
    .h \
    excelfile.h \
    programtreewidget.h \
    userdatarole.h

FORMS    += mainwindow.ui \
    playerwidget.ui \
    dialogfrequence.ui \
    dialogprogram.ui \
    dialogloop.ui \
    dialogconfig.ui \
    dialoguser.ui \
    dialoglogin.ui \

RESOURCES += \
    RoundPlayer.qrc

RC_FILE = RoundPlayer.rc

PROJECT_ROOT=$$PWD/..
COMN_DIR=$${PROJECT_ROOT}/comn
THIRD_PARTY=$${PROJECT_ROOT}/third_party
LITEPLAYER = $${PROJECT_ROOT}/LitePlayer

INCLUDEPATH += $${COMN_DIR}/include
LIBS += -L$${COMN_DIR}/lib/

LIBS += -L$${PROJECT_ROOT}/lib/

INCLUDEPATH += $${LITEPLAYER}/LitePlayer/include
LIBS += -L$${LITEPLAYER}/lib/ -lLitePlayer

INCLUDEPATH += $${THIRD_PARTY}/sqlite/include
LIBS += -L$${THIRD_PARTY}/sqlite/lib/ -lsqlite3

INCLUDEPATH += $${THIRD_PARTY}/xlsx


CONFIG(debug) {
    LIBS += -lcomnd -lxlsxd
} else {
    LIBS += -lcomn -lxlsx
}

win32 {
    QMAKE_CXXFLAGS_WARN_ON += -wd4819 -wd4100
    LIBS += -lws2_32 -lIphlpapi -lUser32 -lAdvapi32 -lole32
}
